<?php if( !defined( 'MAIN_DIR' ) ) { header( 'Location: ' . dirname( PHP_SELF ) . '/' ); exit( ); }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title><?php echo SITE_NAME . ' - S.W.A.T.'; ?></title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
	<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="include/styles.1.0.0.0.css" />
	<script language="javascript" type="text/javascript" src="include/functions.1.0.0.0.js"></script>
</head>
<body>
	<div id="mainHolder" >
<?php

	require( SWAT_DIR . 'pages' . DS . 'header.php' );
	if( !$_SESSION['user'] )
		require( SWAT_DIR . 'pages' . DS . 'login.php' );
	else
		require( SWAT_DIR . 'pages' . DS . 'content.php' );
	require( SWAT_DIR . 'pages' . DS . 'footer.php' );
	
	if( error_reporting( ) > 0 )	{
?>
		<div class="holder" style="top:350px;right:0px;bottom:22px;overflow:auto;background-color:#DDE;padding:3px;width:500px;white-space:nowrap;" >
<?php
	$QUERY = ( isset( $QUERY ) ? $QUERY : array( ) );
	//echo implode( '<br />', array_keys( get_defined_vars( ) ) );
	echo '<hr />QUERIES: ', count( $QUERY );
	echo '<hr />' . implode( '<br />', $QUERY );
	echo '<hr />' . nl2br( trim( Benchmark::getInstance( ) ) );
?>
		</div>
<?php
	}
?>
	</div>
</body>
</html>
